<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>angularJS包含</title>
    <link rel="stylesheet" href="../css/bootstrap.css">
    <script src="../js/angular.min.js"></script>

</head>
<body>
<h1>Users</h1>
<table class="table table-striped">
    <thead>
    <tr>
        <th>编辑</th>
        <th>名</th>
        <th>姓</th>
    </tr></thead>
    <tbody>
    <tr ng-repeat="user in users">
        <td><button class="btn" ng-click="editUser(user.id)">
            <span class="glyphicon glyphicon-pencil"></span>编辑
        </button></td>
        <td>{{user.firstName}}</td>
        <td>{{user.lastName}}</td>
    </tr>
    </tbody>
</table>
<hr>
</body>
</html>